import request from '@/utils/request';
import {type GetProductShowCondition,type DeleteProductCondition,type AddProductCondition,type FindProductCondition,type UpdateProductCondition} from './type'

export function GetProductShow(data:GetProductShowCondition){
    return request({
        url:'ProductData/GetProductShow',
        method:'post',
        data
    })
}

export function DeleteProductRange(data:DeleteProductCondition){
    return request({
        url:'ProductData/DeleteProductRange',
        method:'post',
        data
    })
}

export function AddProductAndOther(data:AddProductCondition){
    return request({
        url:'ProductData/AddProductAndOther',
        method:'post',
        data
    })
}

export function GetProductOne(data:FindProductCondition){
    return request({
        url:'ProductData/GetProductOne?productId='+data,
        method:'get',
        data
    })
}

export function UpdateProductAndOther(data:UpdateProductCondition){
    return request({
        url:'ProductData/UpdateProductAndOther',
        method:'post',
        data
    })
}